This repository was archived by the owner on Feb 2, 2018. It is now read-only.
Commit 3d3ed6e 1 parent ae748ac commit 3d3ed6e Copy full SHA for 3d3ed6e
File tree 2 files changed +11
-2
lines changed
2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 31
31
////////////////////////////////////////////////////////////////////
32
32
33
33
// The default remote connection(s) to execute tasks on
34
- 'default ' => [' production ' ],
34
+ 'default ' => [],
35
35
36
36
// The various connections you defined
37
37
// You can leave all of this empty or remove it entirely if you don't want
47
47
'agent ' => '' ,
48
48
'db_role ' => true ,
49
49
],
50
+ 'staging ' => [
51
+ 'host ' => 'staging.groupeat.fr ' ,
52
+ 'username ' => 'vagrant ' ,
53
+ 'password ' => '' ,
54
+ 'key ' => posix_getpwuid (posix_geteuid ())['dir ' ].'/.ssh/id_rsa ' ,
55
+ 'keyphrase ' => '' ,
56
+ 'agent ' => '' ,
57
+ 'db_role ' => true ,
58
+ ],
50
59
],
51
60
52
61
/*
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ script:
29
29
- ./vendor/bin/codecept run --fail-fast --debug --xml ../../shippable/testresults/results.xml
30
30
31
31
after_success :
32
- - if [[ $(git log -1 HEAD --pretty=format:%s) != *skip\ deploy* ]]; then echo "Starting deployment"; wget http://rocketeer.autopergamene.eu/versions/rocketeer.phar; chmod +x rocketeer.phar; ./rocketeer.phar deploy; else echo "Deployment cancelled"; fi
32
+ - if [[ $(git log -1 HEAD --pretty=format:%s) != *skip\ deploy* ]]; then echo "Starting deployment"; wget http://rocketeer.autopergamene.eu/versions/rocketeer.phar; chmod +x rocketeer.phar; if [ "$BRANCH" == "master" ]; then ./rocketeer.phar deploy --on=production --branch=master; else ./rocketeer.phar deploy --on=staging --branch=develop; fi ; else echo "Deployment cancelled"; fi
33
33
34
34
notifications :
35
35
email :
You can’t perform that action at this time.
0 commit comments