This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
language: php | |
php: | |
- 7.0 | |
script: | |
# Override default Travis script action [phpunit] | |
- php -l *.php | |
branches: | |
only: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# 1. Clone complete SVN repository to separate directory | |
svn co $SVN_REPOSITORY ../svn | |
# 2. Copy git repository contents to SNV trunk/ directory | |
cp -R ./* ../svn/trunk/ | |
# 3. Switch to SVN repository | |
cd ../svn/trunk/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resource "digitalocean_droplet" "default" { | |
# Droplet Name | |
name = "lemp-server" | |
# Droplet Type | |
# One-click application: wordpress, lemp stack, etc. | |
# - or - | |
# Clean distribuion: ubuntu, cent os, etc. | |
image = "lemp-16-04" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resource "digitalocean_domain" "default" { | |
name = "example.com" | |
ip_address = "${digitalocean_droplet.default.ipv4_address}" | |
} | |
resource "digitalocean_droplet" "default" { | |
name = "lemp-server" | |
image = "lemp-16-04" | |
region = "nyc1" | |
size = "512mb" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
provider "digitalocean" { | |
token = "7d50acd89ca3b...8cde9a059828b" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ terraform plan | |
Refreshing Terraform state in-memory prior to plan... | |
The refreshed state will be used to calculate this plan, but will not be | |
persisted to local or remote state storage. | |
------------------------------------------------------------------------ | |
An execution plan has been generated and is shown below. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ TF_VAR_do_token=7d50acd89ca3...8cde9a059828b TF_VAR_domain=example.com TF_VAR_droplet_name=lemp_server terraform apply |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ export TF_VAR_do_token=7d50acd89ca3...8cde9a059828b TF_VAR_domain=example.com TF_VAR_droplet_name=lemp_server | |
$ terraform apply |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ terraform apply | |
var.do_token | |
DigitalOcean API Token | |
Enter a value:▐ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
do_token = "7d50acd89ca3...8cde9a059828b" | |
domain = "example.com" | |
droplet_name = "lemp_server" |
OlderNewer